package com.ruoyi.business.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sun.org.apache.xpath.internal.operations.Bool;
import io.swagger.annotations.Api;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 最爱喝兽奶
 * @create 2022/8/9
 **/
@Api("客观题答案")
@Data
public class ObjectiveAnswerVo implements Serializable {

    private String id;

    private String context;

    private String imageHref;

    private String qid;

    private String sort;

    /**
     * 是否为答案
     */
    private Boolean isChoice;

    /**
     * 代表的选项
     */
    private String key;

    public void setIsChoice(Boolean isChoice) {
        if (null == isChoice) {
            this.isChoice = true;
        }else {
            this.isChoice = isChoice;
        }
    }



}
